
import DataStorage from "../global/DataStorage";
import {LoginResultType} from "../type/LoginType";

/**
 * 获取当前登录用户信息
 */
export const getLoginUserInfo = () => {
    let login = new DataStorage<LoginResultType>().findData( "current-login-user") ;
    return { username: login?.username,identity: login?.identity} ;
} ;